package app

object BuildConfig {
  import java.lang.System._

  def browserInstances = numberOfProcessors - 1
  val hostName = java.net.InetAddress.getLocalHost.getHostName
  def isRunningInIDE = buildType.equals("ide")
  def isRunningOnCI = buildType.equals("ci")

  private def buildType = getProperty("build.type", "ide")
  private def numberOfProcessors = Runtime.getRuntime.availableProcessors

  println("### Running " + buildType + " build, hardware has " + numberOfProcessors + " processors")
}